import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    // 用户信息
    userInfo: {},
    searchResult: {}
  },
  mutations: {
    getUserInfo (state, payLoad) {
      state.userInfo = payLoad
    },
    getSearchList (state, payLoad) {
      state.searchList = payLoad
    }
  },
  actions: {},
  modules: {}
})
